function FusionTable(id,email,password){
	this.id = id;
	this.email = email;
	this.password = password;
}

FusionTable.prototype = {
	getAuthToken : function(callback){
		 this.password = encodeURIComponent(this.password);
		 var url = "http://www.google.com/accounts/ClientLogin";
		 $.post(
		 	url,
		 	{
		 		 payload: "accountType=GOOGLE&Email=" + this.email + "&Passwd=" + this.password + "&service=fusiontables"
		 	},
		 	function(response){
		 		  var responseStr = response.getContentText();
				  responseStr = responseStr.slice(responseStr.search("Auth=") + 5, responseStr.length);
				  responseStr = responseStr.replace(/\n/g, "");
				  callback(responseStr);
		 	}
		 );
	},
	
	querySomething:function(){
		this.getAuthToken(function(authToken){
			alert(authToken);
		});
	},
	
	insert:function(object){
		
	}
}
